Page({
  data: {
    navState: 0,//导航状态
    backgroundurl:'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1166459547,3183187672&fm=26&gp=0.jpg',
    moudle:[
      {information:'浙江舟山',url:'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1601195111169&di=983a7f13645489442a991b5f628807eb&imgtype=0&src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F5%2F57ac4b3a5e7cb.jpg'},
    {information:'浙江湖州南浔古镇',url:'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1601193979129&di=0aecaa4333d2aac09e2151f8416eb955&imgtype=0&src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2F3ab39bee13f1cf7216f31dbc049d02f49f4952e230f0f-unPHTD_fw658'},
    {information:'浙江乌镇西栅夜景',url:'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3456584995,4075493424&fm=26&gp=0.jpg'},
    {information:'浙江缙云仙',url:'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1601186011341&di=cd01e5503f9854657d1fe8c8a31f12ba&imgtype=0&src=http%3A%2F%2Fimg.pconline.com.cn%2Fimages%2Fupload%2Fupc%2Ftx%2Fitbbs%2F1403%2F04%2Fc9%2F31770769_1393929870432.jpg'}],
  },
  //监听滑块
  bindchange(e) {
    // console.log(e.detail.current)
    let index = e.detail.current;
    this.setData({
      navState:index
    })
  },
  //点击导航
  navSwitch: function(e) {
    // console.log(e.currentTarget.dataset.index)
    let index = e.currentTarget.dataset.index;
    this.setData({
      navState:index
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },
})

